package com.jdk.learn.exam.gui;

/**
 * Created by ricky
 * on 2018/2/27.
 * 事件相关：
 *  MouseEvent:鼠标事件
 *  KeyEvent:键盘事件
 *
 *  事件监听:Listener
 *      按钮监听:ActionListener-->ActionPerformed(ActionEvent e)
 *
 ActionListener-->JButton
                 JCheckBox
                 JComboBox
                 JmenuItem
                 JRadioButton
    方法:actionPerformed(ActionEvent e)
 AdjustmentListener-->JScrollBar
    方法:adjustmentValueChanged(AdjustmentEvent)

 ComponentListener-->JComponent及其子类
    方法:componentMoved(ComponentEvent)
    方法:componentHidden(ComponentEvent)
    方法:componentResized(ComponentEvent)
    方法:componentShown(ComponentEvent)

 ContainerListener-->JContainer及其子类
     方法:componentAdded(ContainerEvent)
     方法:componentRemoved(ContainerEvent)

 FocusListener-->同上
     方法:focusGained(FocusEvent)
     方法:focusLost(FocusEvent)

 ItemListener-->JCheckBox
                 JCheckboxMenuItem
                 JComboBox
    方法:itemStateChanged(ItemEvent)

 KeyListener--> 	同ComponentListener

     方法:keyPressed(KeyEvent)
     方法:keyReleased(KeyEvent)
     方法:keyTyped(KeyEvent)

 MouseListener--> 同上

    方法:mousePressed(MouseEvent)
    方法:mouseReleased(MouseEvent)
    方法:mouseEntered(MouseEvent)
    方法:mouseExited(MouseEvent)
    方法:mouseClicked(MouseEvent)

 MouseMotionListener--> 同上
                    (方法:mouseDragged(MouseEvent e)
                         mouseMoved(MouseEvent e)
                        )

 TextListener-->	JTextField、JTextArea

        方法:textValueChanged(TextEvent e)

 WindowListener--> JFrame、JWindow、JDialog
     方法:windowClosing(WindowEvent)
     方法:windowOpened(WindowEvent)
     方法:windowIconified(WindowEvent)最小化
     方法:windowDeiconified(WindowEvent)还原最小化
     方法:windowClosed(WindowEvent)关闭后
     方法:windowActivated(WindowEvent)
     方法:windowDeactivated(WindowEvent)

 */
public class EventDemo {
}
